Skip to content

Conversation

@andrew-chang-dewitt
Copy link
Collaborator

@andrew-chang-dewitt andrew-chang-dewitt commented Jun 24, 2025

Adds examples, translated to PriML, from "Responsive Parallelism with Synchronization" paper.

TODO:

  • fig 2
  • fig 3
  • fig 4
  • add cv[priority] type to parsing
  • remove fun[priority] syntax

@andrew-chang-dewitt andrew-chang-dewitt marked this pull request as ready for review June 24, 2025 18:50
Comment on lines 35 to 39
(* FIXME: or should we add inline types to fn signature? *)
(* FIXME: how to specify arg type as a condition variable? *)
(* FIXME: is `int ref` the correct way to specify res is a refererence? *)
(*
fun[low] foo (cv: cv[high]) (res: int ref) =
Copy link
Collaborator Author

@andrew-chang-dewitt andrew-chang-dewitt Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is using inline types in the function signature the correct way to specify the priority of a condition variable argument to a function (e.g. (cv: cv[high]) as seen in line 39)?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd need to add syntax for the CV type to the parser, so the syntax is up to you. cv[] seems like good syntax to me. I never got around to this for mutexes. Type annotations are generally unnecessary in ML (other than as documentation), so it's possible to get by without it.

@andrew-chang-dewitt

This comment was marked as resolved.

@smuller

This comment was marked as resolved.

@andrew-chang-dewitt

This comment was marked as resolved.

@smuller

This comment was marked as resolved.

@andrew-chang-dewitt
Copy link
Collaborator Author

Code to parse all examples correctly now has been pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants